import request from './request.tsx'
import {requestInfo} from "../type/Info";
import LocalStorage from "../utils/LocalStorage.ts";
import {Auth} from "../type/Auth.ts";
export function chat(data:requestInfo){
    return request({
        url:"/chatStream",
        method:"get",
        headers:{
            Authorization: `${localStorage.getItem("Auth_token")}`
        },
        params:{
            type:data.type,
            content:data.info.content,
            contentType:data.info.contentType
        }
    })
}
